<?php
    include './init.php';

    $page = $_GET['page'];

    $sql = "SELECT * FROM homegroupfloor where Id=". $page;

    $result = $msq->query($sql);

    if ($result->num_rows > 0) {
        while($row = $result->fetch_assoc()) {

            $data['code'] = 1;

            $data['data'] = $row;

        }
    } else {
        $data['code'] = 0;
    }

    $data['data']['content'] = json_decode($data['data']['content']);
    
    echo json_encode($data)

?>